package com.qijian.system.utils;

import com.aspose.cad.exif.enums.ExifCustomRendered;
import com.qijian.common.utils.spring.SpringUtils;
import com.qijian.system.service.IExpireConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/***
 * 超期提醒工具类
 */
@Component
public class ExpireMailUtil {

    public static <T> void  sendExpireMail(String emailType, List<T> sourceDataList, Class<T> clazz){
        IExpireConfigService expireConfigService = SpringUtils.getBean(IExpireConfigService.class);
        expireConfigService.sendExpireMail(emailType,sourceDataList,clazz);
    }
}
